#ifndef _ACC_CALC_H
#define _ACC_CALC_H

#include "stm32f10x_conf.h"

#define ATAN_SIZE 180

#define FILTSIZE 2
#define PI 3.14159265
#define TO_DEG 57.29578

#define off_x 1
#define off_y -13
#define off_z 21


//void calculate_gyro (s16 *acceleration, double *out);
//
//void lookup_gyro (s16 *acceleration, double *out);
//
//void lowpass_filter (s16 accel[FILTSIZE], s16 filtered[FILTSIZE], int i);
//
//void mean_filter (s16 accel[3][3], s16 filtered[3]);

void atanGenerator(double *out);

#endif // _ACC_CALC_H
